package fr.oz.core.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class ModuleEvent extends Event 
	{
		public static const MODULE_SELECTED : String = "module_selected";
		
		public var id:String;
		
		public function ModuleEvent(type:String, moduleId:String, bubbles:Boolean = false, cancelable:Boolean = false) 
		{ 
			super(type, bubbles, cancelable);
			id = moduleId;
		} 
		
		public override function clone():Event 
		{ 
			return new ModuleEvent(type, id, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ModuleEvent", "type", "id", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}